.course-card {
  transition: all 0.3s ease;
  height: 100%;
  border-radius: 8px;
}

.course-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.course-card .ant-card-body {
  padding: 12px;
  height: 100%;
}

.course-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px !important;
}

.course-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 8px;
}

.course-progress {
  margin-bottom: 8px;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}

.teacher-name {
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

/* 响应式调整 */
@media (max-width: 576px) {
  .course-grid {
    margin: 0 -8px;
  }
  
  .course-card .ant-card-body {
    padding: 10px;
  }
}
